const CloneUtil = {
  clone: (obj: any) => {
    // 判断是否是原始类型
    if (typeof obj !== 'object' || obj === null) {
      return obj
    }

    return JSON.parse(JSON.stringify(obj))
  }
}

export default CloneUtil